package com.hopu.controller;

import com.hopu.entity.User;
import com.hopu.service.IFriendService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/friend")
public class FriendController {

    private IFriendService friendService;

    @RequestMapping("/search")
    public List<User> searchFriend(@RequestBody User user) {
        return friendService.searchFriend(user);
    }
}
